-- GENERATED SPELL FOR [Champion of Hodir] --


function spell0_34133(pUnit, Event) --@Stomp,Self--
pUnit:FullCastSpellOnTarget(64639,pUnit)
pUnit:RegisterEvent('Sorts_34133', 500, 1)
end

function spell1_34133(pUnit, Event) --@Stomp,Self--
pUnit:FullCastSpellOnTarget(64652,pUnit)
pUnit:RegisterEvent('Sorts_34133', 500, 1)
end

function Sorts_34133(pUnit, Event)
local choix_sorts_34133 = math.random(0, 1)
if choix_sorts_34133 == 0 then
pUnit:RegisterEvent('spell0_34133', 1, 1)
end
if choix_sorts_34133 == 1 then
pUnit:RegisterEvent('spell1_34133', 1, 1)
end
end

function mob34133_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_34133', math.random(1500, 3000), 1)
end

function mob34133_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob34133_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob34133_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(34133, 1, 'mob34133_Action')
RegisterUnitEvent(34133, 2, 'mob34133_Leave')
RegisterUnitEvent(34133, 3, 'mob34133_Kill')
RegisterUnitEvent(34133, 4, 'mob34133_Die')
